/*
* Copyright (c) 2011 Connection Road.  All rights reserved.
* This program and the accompanying material are made available
* under the terms of the Eclipse Public Licnese v1.0 which is
* available at http://www.eclipse.org/legal/epl-v10.html
*/

using System.Windows.Forms;

namespace CrSyncFilesForms.Forms
{
    public class CrSyncUiTabControl : TabControl
    {
        protected override void OnKeyDown(KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Tab && (e.KeyData & Keys.Control) != Keys.None)
            {
                // DO NOTHING
            }
            else if (e.KeyCode == Keys.PageUp && (e.KeyData & Keys.Control) != Keys.None)
            {
               // DO NOTHING
            }
            else if (e.KeyCode == Keys.PageDown && (e.KeyData & Keys.Control) != Keys.None)
            {
                // DO NOTHING
            }
            else base.OnKeyDown(e);
        }

    }
}
